/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ilves;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Ilves
 */
public class Main {
    public static UserInterface UI = new UserInterface();
    public static fileIO file = new fileIO("ilves.session");
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {
        HappyGreetings.hello();
        if (file.exists()) UI = (UserInterface) file.read();
        UI.printMainMenu();
        file.write(UI);
        HappyGreetings.bye();
    }

}
